<template>
  <header class="header">
    <h1>{{ $route.meta.title || '应用标题' }}</h1>
    <nav>
      <a href="#">首页</a>
      <a href="#">关于</a>
      <a href="#">联系</a>
    </nav>
  </header>
</template>

<style scoped>
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 24px;
}

.header nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
}
</style>
